
	<div class="offerbox2">
	
		<div class="offerbox2head">
			
			<div class="optiondiv">
				<img src="../../images/icons/note_edit.png" /> <%= link_to "new category", :action=> :newcategory, :city_id => @city.id, :country_id => params[:country_id] %>
			</div>
			
			<%= link_to 'guide', :action => "index" %>
			-> <%= link_to @country.name, :action => :showcountry, :id => params[:country_id] %>
			-> <%= link_to @city.name, :action => :showcity, :id => params[:city_id], :country_id => params[:country_id]  %>
			-> new location
			
		</div>
		

  		<div class="offerbox2body1">
		
		<u>All Locations in <%= @city.name %> </u> <p>
		<% @locations_city.each do |location| %>
			<%= link_to location.name, :action => :showlocation, :id => location.id, :city_id => params[:city_id], :country_id => params[:country_id], :category_id => location.category_id %>
			&nbsp; &nbsp;
			<% end %>
							
		</div>
		
		
		
		<div class="offerbox2body2">
		
		</div>
				
	</div>

<div class="guidecontainer">
  	

	<div class="guIdebox1">

		<div class="guIdebox1head">
			<center>
				<%= @city.name %>	
			</center>
		
		</div>
			
		
	<div class="guidebox1box1">
		
		
		<div class="guIdebox1foto">
				
		</div>
		
	<div class="guIdebox1text">
		Create a new location for <%= @city.name %>
		
		<% form_tag :action=> "create_location" do %>
		
		<p><label for="location_name">name</label><br/>
		<%= text_field 'location', 'name'  %></p>
		
		<p><label for="location_adress">adress</label><br/>
		<%= text_field 'location', 'adress'  %></p>
		
		<p><label for="location_homepage">homepage</label><br/>
		<%= text_field 'location', 'homepage'  %></p>
		
		<%= hidden_field 'location', 'city_id', :value => @city.id %>
		
		<p><label for="category">Category</label><br/>
		<%= collection_select 'location', 'category_id', @allecategories, "id", "name" %></p>
		
		<%= submit_tag "speichern" %>
		
		<% end %>

	</div>
	
	
		
			
	</div>
		
		
</div>
	

</div>
		
		
